<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wb="http://open.weibo.com/wb">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>预创建索引</title>
<script>
		$(document).ready(function() {
			$("#initProductionIndex").addClass("active");
		});
</script>
</head>

<body>
<h1 align="center">选择城市创建索引文件</h1>
<table>
	<form action="createProductionIndex" method="post">
		<!--
			<select id="cityCode" name="cityCode">
				<c:forEach var="city" items="${citys}">
					<option value='<c:out value="${city.id}"/>'><c:out value="${city.name}"/></option>
				</c:forEach>
			</select>
   		  -->
		<br/>
		
		<div>
			<label class="checkbox">
				<c:out value="全国"/>
				<input type="checkbox" id="qg", name="qg", value="2"/>
			</label> 
			
			<c:forEach var="city" items="${citys}" varStatus="i" step="1" begin="0"> 
				<c:out value="${city.name}"/>
				<input type="checkbox" id="cityCode", name="cityCode", value="${city.id}"/>
				<c:if test="${i.count%10==0}"><br/></c:if>
			</c:forEach>  
		</div>   
		<div class="row" style="padding-left: 50px"> <br/>
			<label>
				<input id="submit_btn" class="btn btn-primary" type="submit" value="创建"/>
			</label>
		</div> 
	</form>
</table>
</body>
</html>